package cn.chinaunicom.sdsi.upfc_demp.sys.entity;

import java.io.Serializable;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

public class SysDemo implements Serializable {
    private Integer id;

    @NotEmpty
    private String name;

    @NotBlank
    private String author;

    @NotNull
    private String status;

    @NotNull
    private Integer dispOrder;

    private String value;

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getDispOrder() {
        return dispOrder;
    }

    public void setDispOrder(Integer dispOrder) {
        this.dispOrder = dispOrder;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("id:").append(id).append("\nname:").append(name).append("\nauthor:").append(author).append("\nstatus:")
                .append(status).append("\ndispOrder:").append(dispOrder);
        return builder.toString();
    }
}
